# file = open("./1.txt", "r", encoding="utf-8")
# print(file.read())
# file.close()
# ###
# file2 = open("./1.txt", "w", encoding="utf-8")
# file2.write("hello world")
# file2.close()
# ###
# file3 = open("./1.txt", "a", encoding="utf-8")
# file3.write("\nhello you")

###
# file4 = open("./5.txt", "r", encoding="utf-8")

# with open("./5.txt", "r", encoding="utf-8") as file4:
#     while True:
#         line = file4.readline()
#         if not line:
#             break
#         print(line.strip())
#
#
# with open("./5.txt", "r", encoding="utf-8") as file4:
#     print(file4.readlines())

# with open("./5.txt", "a", encoding="utf-8") as file4:
#     str4 = "hello world4"
#     file4.write(str4)
#     list4 = ["\nhello world5", "\nhello world6"]
#     file4.writelines(list4)
#
# ##文件复制
# with open ('./pony.jpg' , 'rb')as file1:
#     with open ('./pony2.jpg' , 'wb')as file2:
#         while True:
#             data = file1.read(1024)
#             if not data:
#                 break
#             file2.write(data)
# with open('./1.txt', 'r',encoding='utf-8') as file:
#     print(file.tell())
#     line = file.read(3)
#     print(file.tell())
# os.rmdir('./2.png')
# os.remove('./4442.png')
# os.rmdir('./2.png')
# import  os
# os.mkdir("test1")
# os.rmdir("test1")

# print(os.getcwd())
# print(os.path.exists('./'))
# print(os.path.isdir('./'))
# print(os.path.isfile('./'))
# print(os.path.join('./', '1.txt'))
# print(os.path.split('./'))
# print(os.path.basename('./'))
# print(os.listdir('./'))
# #循环路径
